package com.wwwarehouse.common.bean.upload;

import java.io.Serializable;
import java.util.List;

/**
 * Created by xiaoke.ni on 2017/7/11.
 */

public class FileUploadBean implements Serializable {

    /**
     * code : 0
     * data : [{"path":"/temp/d2a88fb2-4a0c-498b-a3cb-30488f46d4e4.jpg","name":"d2a88fb2-4a0c-498b-a3cb-30488f46d4e4.jpg","oName":"frontPhoto.jpg"},{"path":"/temp/77dde478-2d2c-4771-86be-e2aa499160ef.jpg","name":"77dde478-2d2c-4771-86be-e2aa499160ef.jpg","oName":"backPhoto.jpg"}]
     * msg :
     */

    private String code;
    private String msg;
    private List<DataBean> data;
    private String path;  //由于图片上传返回给我们的是临时路径，根本用不了，所以，我们暂时用本地的路径带过去

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * path : /temp/d2a88fb2-4a0c-498b-a3cb-30488f46d4e4.jpg
         * name : d2a88fb2-4a0c-498b-a3cb-30488f46d4e4.jpg
         * oName : frontPhoto.jpg
         */

        private String path;
        private String name;
        private String oName;
        private IdCard idcard;
        private String fullPath;

        @Override
        public String toString() {
            return "DataBean{" +
                    "path='" + path + '\'' +
                    ", name='" + name + '\'' +
                    ", oName='" + oName + '\'' +
                    ", idcard=" + idcard +
                    ", fullPath='" + fullPath + '\'' +
                    '}';
        }

        public String getFullPath() {
            return fullPath;
        }

        public void setFullPath(String fullPath) {
            this.fullPath = fullPath;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getOName() {
            return oName;
        }

        public void setOName(String oName) {
            this.oName = oName;
        }

        public String getoName() {
            return oName;
        }

        public void setoName(String oName) {
            this.oName = oName;
        }

        public IdCard getIdcard() {
            return idcard;
        }

        public void setIdcard(IdCard idcard) {
            this.idcard = idcard;
        }
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
